package MaquinaVirtual;

import java.util.ArrayList;

public class Memoria {
	
	private ArrayList<String> _mem;

	public Memoria() {
		_mem = new ArrayList<String>();
	}
	
	public ArrayList<String> getMem(){
		return _mem;
	}
	public String[][] getTabla(){
		String[][] str=new String[this._mem.size()][2];
		
		for(int i=0;i<this._mem.size();i++){
			str[i][0]=Integer.toString(i);
			str[i][1]=this._mem.get(i);			
		}
		return str;
	}
}
